/**
 * Created by Administrator on 2017/7/6.
 */
$(document).ready(function () {
    var owl = $('.owl-carousel');
    owl.owlCarousel({
        items: 1,
        loop: true,
        margin: 10,
        autoplay: true,
        autoplayTimeout: 3000,
        autoplayHoverPause: true
    });
    $('.play').on('click', function () {
        owl.trigger('play.owl.autoplay', [3000])
    })
    $('.stop').on('click', function () {
        owl.trigger('stop.owl.autoplay')
    });
    grayscale(document.getElementById("gray"));
});
